//签订中--申请盖章
import request from "@/utils/request.js";

// 分页查询待办合同列表
export function getConProcessingPageList(query) {
    return request({
        url: '/con/process/processingPage',
        method: 'get',
        params: query
    })
}

// 分页查询已办合同列表
export function getConProcessedPageList(query) {
    return request({
        url: '/con/process/processedPage',
        method: 'get',
        params: query
    })
}

// 查询合同页面所有权限控制按钮
export function getButtons(id) {
    return request({
        url: '/con/process/getButton/' + id,
        method: 'get'
    })
}

// 查询合同基本信息
export function getConProcessBasicInfo(id) {
    return request({
        url: '/con/process/getConBasicInfo/' + id,
        method: 'get'
    })
}

//退回
export function reject(id) {
    return request({
        url: '/con/process/back/' + id,
        method: 'put'
    })
}

//审核中--通过
export function auditApproved(id) {
    return request({
        url: '/con/process/audit/' + id,
        method: 'put'
    })
}

//签订中--通过
export function signApproved(id) {
    return request({
        url: '/con/process/sign/' + id,
        method: 'put'
    })
}

//履行中--通过
export function fulfillApproved(id) {
    return request({
        url: '/con/process/fulfill/' + id,
        method: 'put'
    })
}

//归档中--通过
export function archiveApproved(id) {
    return request({
        url: '/con/process/archive/' + id,
        method: 'put'
    })
}